﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.Assertions.AssertionException
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using System;

#nullable disable
namespace UnityEngine.Assertions
{
  /// <summary>
  ///   <para>An exception that is thrown when an assertion fails.</para>
  /// </summary>
  public class AssertionException : Exception
  {
    private string m_UserMessage;

    public AssertionException(string message, string userMessage)
      : base(message)
    {
      this.m_UserMessage = userMessage;
    }

    public override string Message
    {
      get
      {
        string message = base.Message;
        if (this.m_UserMessage != null)
          message = this.m_UserMessage + "\n" + message;
        return message;
      }
    }
  }
}
